import { ApiProperty, OmitType } from '@nestjs/swagger';
import { PermissionEntity } from '../entities/permission.entity';

class ListPermissionItem extends OmitType(PermissionEntity, ['roles']) {}

export class ListPermissionReturn {
  @ApiProperty()
  total: number;
  @ApiProperty({ type: ListPermissionItem, isArray: true })
  rows: PermissionEntity[];
}
